package com.zhao.dota.security;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;

import java.io.Serializable;

public class AuthenticationToken extends UsernamePasswordAuthenticationToken implements Serializable {

    public AuthenticationToken(Authentication userAuthentication) {
        super(userAuthentication.getPrincipal(), userAuthentication.getCredentials(), userAuthentication.getAuthorities());
    }

}
